package com.zhang.second.day02;

import com.zhang.second.utils.ClickSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @title: 自定义数据源
 * @author: zhang
 * @date: 2022/1/29 18:26
 */
public class Example1 {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);

        env
                .addSource(new ClickSource())
                .print();

        env.execute();
    }
}
